package top.jacktgq.candychat.netty.pojo.dto;

import java.io.Serializable;

/**
 * 
 * @Title: ChatMsg.java 
 * @Package top.jacktgq.imooc.candychat 
 * @Description: 聊天消息
 * @author CandyWall   
 * @date 2021年2月22日 下午8:32:57 
 * @version V1.0
 */
public class ChatMsgDTO implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -8406402763078883799L;
    
    private String sendUserId;    // 发送者的用户ID
    private String acceptUserId;  // 接收者的用户ID
    private String msg;           // 聊天内容
    private String msgId;         // 用于用户消息的签收

    public ChatMsgDTO() {
    }

    public ChatMsgDTO(String sendUserId) {
        this(sendUserId, null, null);
    }

    public ChatMsgDTO(String sendUserId, String acceptUserId, String msg) {
        this.sendUserId = sendUserId;
        this.acceptUserId = acceptUserId;
        this.msg = msg;
        this.msgId = msgId;
    }

    public String getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(String sendUserId) {
        this.sendUserId = sendUserId;
    }

    public String getAcceptUserId() {
        return acceptUserId;
    }

    public void setAcceptUserId(String acceptUserId) {
        this.acceptUserId = acceptUserId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    @Override
    public String toString() {
        return "ChatMsgDTO{" +
                "sendUserId='" + sendUserId + '\'' +
                ", acceptUserId='" + acceptUserId + '\'' +
                ", msg='" + msg + '\'' +
                ", msgId='" + msgId + '\'' +
                '}';
    }
}
